package com.yyh1;

public class Manager extends Coder{
    private double bonus;
    public Manager(){
        super();
    }

    public Manager(String name, int id, double salary) {
        super(name, id, salary);
    }

    public Manager(String name, int id, double salary, double bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public String work() {
        return "正在努力地做着管理工作，分配任务，检查员工提交上来的代码……";
    }
    @Override
    public String getInfos(){
        return "工号为"+id+"基本工资为"+salary+"奖金为"+bonus+"的"+name+work();

    }
}
